/**
 * 常量类
 */
import { CardItemDto } from './dto/CardItemDto';
import { MusicDto } from './dto/MusicDto';
import { OneQuipDto } from './dto/OneQuipDto';
import { WeatherDto } from './dto/WeatherDto';
import { DateUtil } from './utils/DateUtil';
export class Constants {
  /**
   * 样式
   */
  static readonly THEME_KEY: string = "SHCP_Theme";

  static readonly API_TOKEN_KEY: string = "04dc9e1ef3a8b6308f640331d81e032c";
  // 页面百分比
  static readonly PAGE_FULL: string = "100%";
  static readonly PAGE_W96: string = "90%";
  static readonly PAGE_W40: string = "40%";
  static readonly PAGE_W26: string = "26%";

  static readonly PAGE_H60: string = "60%";
  static readonly PAGE_H55: string = "55%";
  static readonly MODULE_W128: number = 128;
  static readonly MODULE_H64: number = 64;
  static readonly MODULE_H32: number = 32;
  static readonly MODULE_H12: number = 12;

  // 亮色
  static readonly PAGE_BG_LIGHT_COLOR: string = "#B4C6D9";

  // 暗色
  static readonly PAGE_BG_DARK_COLOR: string = "#1B1D26";

  // icon图标大小
  static readonly ICON_SIZE81: number = 81;
  static readonly ICON_SIZE64: number = 64;
  static readonly ICON_SIZE48: number = 48;
  static readonly ICON_SIZE32: number = 32;
  static readonly ICON_SIZE24: number = 24;
  static readonly ICON_SIZE16: number = 16;

  // 行列间隔
  static readonly SPACING_SIZE12: number = 12;
  static readonly SPACING_SIZE10: number = 10;
  static readonly SPACING_SIZE8: number = 8;
  static readonly SPACING_SIZE6: number = 6;
  static readonly SPACING_SIZE4: number = 4;

  // 内边距
  static readonly PADDING_SIZE16: number = 16;
  static readonly PADDING_SIZE12: number = 12;
  static readonly PADDING_SIZE8: number = 8;

  // 圆角尺寸
  static readonly RADIUS_SIZE20: number = 20;
  static readonly RADIUS_SIZE18: number = 18;
  static readonly RADIUS_SIZE16: number = 16;
  static readonly RADIUS_SIZE8: number = 8;
  static readonly RADIUS_SIZE4: number = 4;

  // 阴影尺寸
  static readonly SHADOW_SIZE16: number = 16;
  static readonly SHADOW_SIZE8: number = 8;
  static readonly SHADOW_SIZE4: number = 4;

  static readonly DEFAULT_ONE_QUIP: OneQuipDto = {
    word: "我不愿再给你写信了。因为我终于感到，我们的全部通信只是一个大大的幻影，我们每人只是在给自己写信。",
    wordfrom: "",
    imgurl: "https://image.wufazhuce.com/FgeR8OEqeFwlRfP5tUSLT4yK_RLx",
    imgauthor: ""
  }

  static readonly DEFAULT_WEATHER: WeatherDto = {
    date: DateUtil.formatCurrDate(),
    week: DateUtil.getWeek(),
    weather: '晴天',
    real: '18°C'
  }

  static readonly CARD_LIST: Array<CardItemDto> = [
    {
      name: "门铃",
      icon: "/common/img/ic_video_door.svg",
      page: "pages/VideoDoor"
    },
    {
      name: "电梯",
      icon: "/common/img/ic_lift.svg",
      page: "pages/Lift"
    },
    {
      name: "客厅",
      icon: "/common/img/ic_living_room.svg",
      page: "pages/LivingRoom"
    },
    {
      name: "厨房",
      icon: "/common/img/ic_kitchen.svg",
      page: "pages/Kitchen"
    },
    {
      name: "卧室",
      icon: "/common/img/ic_bedroom.svg",
      page: "pages/Bedroom"
    },
    {
      name: "卫生间",
      icon: "/common/img/ic_toilet.svg",
      page: "pages/Toilet"
    }
  ];

  static readonly DEFAULT_MUSIC_LIST: MusicDto = {
    name: "天空之城",
    author: "宫崎骏",
    src: "/common/audio/tkzc.mp3",
    img: "/common/img/tkzc.jpg"
  }
}